//
//  EVhomeSection.m
//  dlzf
//
//  Created by 刘日 on 7/5/16.
//  Copyright © 2016 t-cloud. All rights reserved.
//

#import "EVhomeSection.h"

@implementation EVhomeSection

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = LKColorMake(245, 245, 245, 1);
        
        self.titleLabel = [[UILabel alloc] initWithFrame: CGRectMake(12, 10, frame.size.width, 12)];
        self.titleLabel.textColor = [UIColor colorWithRed: 153 / 255.0 green: 153 / 255.0  blue: 153 / 255.0 alpha: 1];
        self.titleLabel.font = [UIFont systemFontOfSize: 12];
        
        self.leftLine = [[UIView alloc] initWithFrame: CGRectMake(0, 10, 2, 12)];
        self.leftLine.backgroundColor = [UIColor colorWithRed: 250 / 255.0 green: 74 / 255.0  blue: 50 / 255.0 alpha: 1];
    
        self.roomNumer = [[UILabel alloc]initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width - 50, 10, 40, 12)];
        self.roomNumer.textColor = [UIColor colorWithRed: 153 / 255.0 green: 153 / 255.0  blue: 153 / 255.0 alpha: 1];
        self.roomNumer.font = [UIFont systemFontOfSize:12];
        
        self.ul_modify = [[UILabel alloc]initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width - 92, 10, 60, 12)];
        //        self.ul_modify.backgroundColor = [UIColor yellowColor];
        self.ul_modify.textColor = [UIColor colorWithRed: 68/ 255.0 green: 138 / 255.0  blue: 255 / 255.0 alpha: 1];
        self.ul_modify.textAlignment = NSTextAlignmentRight;
        self.ul_modify.font = [UIFont systemFontOfSize:12];
        
        self.uiv_modify = [[UIImageView alloc]initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width - 32, 10, 12, 12)];
        //        self.uiv_modify.backgroundColor = [UIColor redColor];
        //        self.uiv_modify.image = [UIImage imageNamed:@"ic_kexiugai"];
        
        self.clipsToBounds = YES;
        [self addSubview: _titleLabel];
//        [self addSubview: self.leftLine];
        [self addSubview:self.roomNumer];
        [self addSubview:self.ul_modify];
        [self addSubview:self.uiv_modify];
    }
    return self;
}

@end
